home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Portable Patmos / usr / include / net / slip.h < prev   
Encoding:
C/C++ Source or Header  |  1994-11-08  |  1.5 KB  |  50 lines  |  [TEXT/R*ch]

  1. /*
  2.  * Definitions that user level programs might need to know to interact
  3.  * with serial line IP (slip) lines.
  4.  *
  5.  *    $Id: slip.h,v 1.3 1993/05/20 03:06:14 cgd Exp $
  6.  *
  7.  * Copyright (c) 1990 Regents of the University of California.
  8.  * All rights reserved.
  9.  *
  10.  * Redistribution and use in source and binary forms are permitted
  11.  * provided that the above copyright notice and this paragraph are
  12.  * duplicated in all such forms and that any documentation,
  13.  * advertising materials, and other materials related to such
  14.  * distribution and use acknowledge that the software was developed
  15.  * by the University of California, Berkeley.  The name of the
  16.  * University may not be used to endorse or promote products derived
  17.  * from this software without specific prior written permission.
  18.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  19.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  20.  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21.  */
  22.  
  23. #ifndef _NET_SLIP_H_
  24. #define _NET_SLIP_H_
  25.  
  26. /*
  27.  * ioctl to get slip interface unit number (e.g., sl0, sl1, etc.)
  28.  * assigned to some terminal line with a slip module pushed on it.
  29.  */
  30. #ifdef __STDC__
  31. #define SLIOGUNIT _IOR('B', 1, int)
  32. #else
  33. #define SLIOGUNIT _IOR(B, 1, int)
  34. #endif
  35.  
  36. /*
  37.  * definitions of the pseudo- link-level header attached to slip
  38.  * packets grabbed by the packet filter (bpf) traffic monitor.
  39.  */
  40. #define SLIP_HDRLEN 16
  41.  
  42. #define SLX_DIR 0
  43. #define SLX_CHDR 1
  44. #define CHDR_LEN 15
  45.  
  46. #define SLIPDIR_IN 0
  47. #define SLIPDIR_OUT 1
  48.  
  49. #endif /* !_NET_SLIP_H_ */
  50.